 <template>
  <!-- 父组件 -->
  <div>
    <h2>{{$store.state.name}}</h2>
    <Ds :arr="arr"></Ds>
    <Sw @cz="get" ></Sw>
  </div>
</template>
 <script>
import Ds from "./bus.vue";
import Sw from "./busxq.vue";
export default {
  components: {
    Ds,
    Sw,
  },
  data() {
    return {
      arr: "",
    };
  },
  methods: {
    get(i) {
      this.arr = i;
    },
  },
  computed: {},
};
</script>
 <style lang='css'>
</style>